<%@ page contentType="text/html;charset=UTF-8" %>
<input type="hidden" id ="page" name="page" value="<s:property value="queryDO.toPage"/>"/>
<table width="100%" cellpadding="0" cellspacing="0" class="box" style="border-top:1px #fff solid;">
    	<tr>
        	<td width="60%" height="70" align="right">
            	<p class="page">
                	共有&nbsp;<s:property value="queryDO.totalItem" />&nbsp;条记录&nbsp;
                	<s:set var="prePage" value="queryDO.toPage - 1" />
                	<s:set var="nextPage" value="queryDO.toPage + 1" />
                	<s:if test="!queryDO.isFirstPage()" >
	                	<a href="#" onclick="changePage(1)">第一页</a>&nbsp;
	                	<a href="#" onclick="changePage(${prePage})">上一页</a>&nbsp;
                	</s:if>
                	<s:if test="!queryDO.isLastPage()" >
						<a href="#" onclick="changePage(${nextPage})">下一页</a>&nbsp;
		              	<a href="#" onclick="changePage(<s:property value='queryDO.totalPage' />)">最后页</a>&nbsp;
                	</s:if>
                	第<span class="red"><s:property value="queryDO.toPage" /></span>页，共<span class="red"><s:property value="queryDO.totalPage" /></span>页
                </p>
            </td>
            <td width="40%" align="left" style="padding:0 0 0 10px;">
            </td>
        </tr>
</table>
    
<script language="javascript">
   function changePage(page) {
		if(page <= 0){
			page = 1;
		}
		var totalpage = Number('<s:property value="queryDO.totalPage" />');
		if(page > totalpage){
			page = totalpage;
		}
        doSearch(page);
    }
</script>